class TestField::PhotosController < ApplicationController
  protect_from_forgery :except => :create

  def new
    @photo = ValleyerLogo.new
  end

  def create
    @photo = ValleyerLogo.new(
        :image_file => params[:Filedata],
        :valleyer => Valleyer.first
      )
      render :text => @photo.save ? '成功':'失败'
  end

  def authorize
    
  end

end
